﻿<local:BaseDataVisualizer x:Class="BrainTechLLC.Silverlight.ClientApplication.ShowPropertiesControl"    
    xmlns="http://schemas.microsoft.com/client/2007"
    xmlns:local="clr-namespace:BrainTechLLC.Silverlight.Controls;assembly=BrainTechLLC.Silverlight.Controls"
    xmlns:y="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid Width="Auto" Height="Auto" HorizontalAlignment="Stretch" Name="mainGrid" VerticalAlignment="Stretch" ShowGridLines="False" Margin="0,0,0,0">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="18"/>
        </Grid.RowDefinitions>
        <ListBox Grid.Row="0" Height="Auto" HorizontalAlignment="Stretch" x:Name="lstProps" VerticalAlignment="Stretch" Width="Auto" 
    			Margin="0,0,0,0" Padding="0,0,0,0" BorderThickness="0,0,0,0"  BorderBrush="Black"  VerticalContentAlignment="Top" HorizontalContentAlignment="Left"  
    			SelectionChanged="lstProps_SelectionChanged" Style="{StaticResource ListBoxStyle1}" ItemContainerStyle="{StaticResource ListBoxItemStyle1}">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <y:WrapPanel Name="wrap" Height="Auto" Margin="0,0,0,0" VerticalAlignment="Top" Orientation="Vertical" SizeChanged="WrapPanel_SizeChanged" Loaded="WrapPanel_Loaded" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Border Width="Auto" BorderBrush="Green" Loaded="lstProps_Loaded" BorderThickness="0,0,0,0" 
    						            Margin="0,0,0,0" Padding="0,0,0,1" Height="Auto"
    						            x:Name="border" HorizontalAlignment="Stretch" VerticalAlignment="Top">
                        <Grid Margin="0,0,0,0" ShowGridLines="False" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="140"/>
                                <ColumnDefinition Width="120"/>
                                <ColumnDefinition Width="16"/>
                            </Grid.ColumnDefinitions>
                            <TextBox Text="{Binding Mode=TwoWay, Path=Identifier}" FontSize="9" Style="{StaticResource TextBoxNoScroller}" Grid.Column="0" FontFamily="Verdana"/>
                            <TextBox Text="{Binding Mode=TwoWay, Path=Value}" FontSize="9" Style="{StaticResource TextBoxNoScroller}" Grid.Column="1" FontFamily="Verdana" BorderThickness="0,1,1,1" />
                            <Image Grid.Column="2" Width="14" Height="14" Name="imgDelete" MouseLeftButtonUp="Image_MouseLeftButtonUp" Tag="{Binding Mode=OneWay, Path=Identifier}"
                                   Source="/Symbol Delete 2.png"/>
                        </Grid>
                    </Border>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Grid Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ShowGridLines="False" Grid.Row="1" Margin="2,0,2,2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="140"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="32"/>
            </Grid.ColumnDefinitions>
            <ContentControl Content="Add Property:" Grid.Column="0" Style="{StaticResource TextBlockContentStyle}" />
            <TextBox x:Name="txtAdd" Text="" MouseLeftButtonDown="txtAdd_MouseLeftButtonDown" LostFocus="txtAdd_LostFocus" Style="{StaticResource TextBoxNoScroller}" MinWidth="80" Grid.Column="1" />
            <Button x:Name="btnAdd" Content="Add" Grid.Column="2" Padding="2,0,2,0" FontSize="9" Click="btnAdd_Click"/>
        </Grid>
    </Grid>
</local:BaseDataVisualizer>
